/**
 * 
 */
package neptune.web.client.view.components;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.ScrollPanel;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class LongMessageWidget extends MessageWidget {

	public LongMessageWidget(int type, String message) {
		super(type, message);

		this.getMainWidget().removeFromParent();
		HTML label = new HTML("<pre>" + message + "</pre>");

		ScrollPanel panel = new ScrollPanel(label);
		panel.setWidget(label);
		panel.setSize("500px", "500px");

		this.setMainWidget(panel);
	}

}
